Skip to content

Conversation

@acpMicrocom
Copy link

No description provided.

@legalsylvain
Copy link
Contributor

legalsylvain commented Nov 21, 2024

/ocabot migration mass_mailing

Copy link
Contributor

@carlos-lopez-tecnativa carlos-lopez-tecnativa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TT49916

Comment on lines +112 to +113
NEW mailing.contact: mass_mailing.mass_mail_contact_0 (noupdate)
DEL mailing.contact: mass_mailing.mass_mailing_contact_0 (noupdate)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I consider that this ID XML needs to be renamed instead of "Nothing to do" to prevent data loss.
mass_mailing.mass_mailing_contact_0 renamed to mass_mailing.mass_mail_contact_0

---Fields in module 'mass_mailing'---
mass_mailing / mail.blacklist / opt_out_reason_id (many2one) : NEW relation: mailing.subscription.optout
mass_mailing / mailing.contact / _order : _order is now 'name ASC, id DESC' ('email')
mass_mailing / mailing.contact / list_ids (many2many) : table is now 'mailing_subscription' ('mailing_contact_list_rel')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment on lines +16 to +20
mass_mailing / mailing.contact.subscription / contact_id (many2one) : DEL relation: mailing.contact, required
mass_mailing / mailing.contact.subscription / list_id (many2one) : DEL relation: mailing.list, required
mass_mailing / mailing.contact.subscription / opt_out (boolean) : DEL
mass_mailing / mailing.contact.subscription / unsubscription_date (datetime): DEL
# NOTHING TO DO:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I interpret that Odoo renamed models from mailing.contact.subscription to mailing.subscription. So, we must add the respective migration script to fill the new table from the old table, or rename the tables (if possible) with the goal of preserving data.

odoo/odoo@46ab1e3

@MiquelRForgeFlow
Copy link
Contributor

Superseded by #4785

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants